<#include '/pages/taglib/core.ftl'>
<#include '/pages/taglib/common.ftl'>
<@header ignore=true/>
<#assign _resultCode = Parameters._resultCode!>
<#assign isJson = _resultCode == '$json'>
<#if isJson>
	<#list actionErrors as error><#t>
		{"error": "${fn.quote(error!)}"}<#t>
	</#list><#t>
<#else>
	<#if actionErrors?exists && actionErrors?size gt 0><#t>
	<div class="error" style="padding-top:10px;color:#DD4B39;text-align:center;"><#lt>
		<#list actionErrors as error>
			${error!}<br>
		</#list>
	</div><#lt>
	<#elseif actionMessages?exists && actionMessages?size gt 0>
	<div class="message"><#lt>
		<#list actionMessages as message>
			${message!}<br>
		</#list>
	</div><#lt>
	</#if>
</#if>